//
//  TimeRecord+CoreDataProperties.swift
//  
//
//  Created by 申铭 on 2024/2/27.
//
//

import Foundation
import CoreData

enum TimeRecordStatus: Int32 {
    case delete = -1
    case normal = 0
}

extension TimeRecord {

    @nonobjc public class func fetchRequest() -> NSFetchRequest<TimeRecord> {
        return NSFetchRequest<TimeRecord>(entityName: "TimeRecord")
    }
    
    @NSManaged public var uuid: String?
    /// 某一组的UUID，用于显示历史记录
    @NSManaged public var groupId: String?
    @NSManaged public var title: String?
    @NSManaged public var type: Int32
    @NSManaged public var status: Int32
    @NSManaged public var flag: Int32
    /// 分段的持续时间
    @NSManaged public var duration: Double
    /// 计时中的时间，正计时使用，例：正计时是09:00 ~ 10:00，记录此计时器中的 09:55
    @NSManaged public var theTime: Double
    /// 计时中的累计时间
    @NSManaged public var theCumulativeTime: Double
    @NSManaged public var createTime: Double
    @NSManaged public var updateTime: Double
    @NSManaged public var timer: CATimer?

}
